$OpenBSD: patch-index_convert_c,v 1.2 2015/02/17 22:52:51 naddy Exp $
--- index/convert.c.orig	Thu Nov 21 21:42:06 1996
+++ index/convert.c	Tue Feb 17 23:52:13 2015
@@ -791,7 +791,7 @@ change_format(InputFilenames, ReadIntoMemory, InputTyp
 			sprintf(s, "mv -f %s %s", outname, realname);
 			if (system(s) == -1) fprintf(stderr, "Errno=%d -- could not execute: %s\n", errno, s);
 #else
-			if (rename(outname, realname) == -1) fprintf(stderr, "Errno=%d -- could not rename %s as %s\n", outname, realname);
+			if (rename(outname, realname) == -1) fprintf(stderr, "Errno=%d -- could not rename %s as %s\n", errno, outname, realname);
 #endif
 		}
 		unlink(outname);
